import React from 'react';
import {Provider} from "react-redux";
import store, {persistor} from "@store/index";
import AppRouter from "@router/index";
import {PersistGate} from "redux-persist/integration/react";

function App() {
    return (
        <Provider store={store}>
            <PersistGate persistor={persistor}>
                <AppRouter />
            </PersistGate>
        </Provider>
    );
}

export default App;